import { defHttp } from "@/utils/http";

// ERP 科室库存详情 API
export const intDetailsApi = {
	// 查询科室库存详情列表
	invtDeptList: async (params: any) => {
		return await defHttp.get({ url: `/whs/invt-dept/page`, params });
	},
	// 新增科室库存详情
	invtDeptCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/invt-dept/create`, data });
	},

	// 修改科室库存详情
	invtDeptUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/invt-dept/update`, data });
	},

	// 删除科室库存详情
	invtDeptDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/invt-dept/delete?id=` + id });
	}
};
